package com.baseframe.sys.entity;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;

/**
 */
@Entity
@Table(name = "frame_attachstorage")
public class FrameAttachstorage implements Serializable {
	private static final long serialVersionUID = 6991739804555923153L;

	@Id
	private String attachguid;
	private String attachfilename;
	private String contenttype;
	@Lob @Basic(fetch = FetchType.LAZY)
	@Column(length=100000)
	private byte[] content;
	private String documenttype;
	private String clienttag;
	private String clientguid;

	public String getAttachguid() {
		return attachguid;
	}

	public void setAttachguid(String attachguid) {
		this.attachguid = attachguid;
	}

	public String getAttachfilename() {
		return attachfilename;
	}

	public void setAttachfilename(String attachfilename) {
		this.attachfilename = attachfilename;
	}

	public String getContenttype() {
		return contenttype;
	}

	public void setContenttype(String contenttype) {
		this.contenttype = contenttype;
	}

	public String getDocumenttype() {
		return documenttype;
	}

	public void setDocumenttype(String documenttype) {
		this.documenttype = documenttype;
	}

	public String getClienttag() {
		return clienttag;
	}

	public void setClienttag(String clienttag) {
		this.clienttag = clienttag;
	}

	public String getClientguid() {
		return clientguid;
	}

	public void setClientguid(String clientguid) {
		this.clientguid = clientguid;
	}

	@Lob
	@Basic(fetch = FetchType.LAZY)
	@Column(name = "CONTENT", columnDefinition = "BLOB", nullable = true)
	public byte[] getContent() {
		return content;
	}

	public void setContent(byte[] content) {
		this.content = content;
	}

}
